package map.back.managerment.Controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by KinthXu on 2020/06/10.
 */
@CrossOrigin
@Controller
@RequestMapping
@Api(value = "项目页面控制器", tags = "项目页面API")
public class PageCtrl {
    /**
     * 页面控制器
     * @return
     */
    @GetMapping("/")
    @ApiOperation(value = "API首页")
    public String index() {
        return "redirect:/swagger-ui.html";
    }

}